package com.kksoft.readcm.objects;

import com.kksoft.readcm.activity.App;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicBoolean;
import java.util.concurrent.atomic.AtomicInteger;

public final class c
{
  private CountDownLatch a;
  private final AtomicInteger b;
  private final AtomicBoolean c;
  private String d;

  public c()
  {
    CountDownLatch localCountDownLatch = new CountDownLatch(1);
    this.a = localCountDownLatch;
    AtomicInteger localAtomicInteger = new AtomicInteger();
    this.b = localAtomicInteger;
    AtomicBoolean localAtomicBoolean = new AtomicBoolean();
    this.c = localAtomicBoolean;
  }

  public final void a()
  {
    int i = this.b.getAndIncrement();
  }

  public final void a(String paramString)
  {
    this.d = paramString;
  }

  public final void b()
  {
    if (this.b.decrementAndGet() <= 0)
      c();
  }

  public final void c()
  {
    if (this.c.get())
      this.a.countDown();
    this.b.set(0);
  }

  public final boolean d()
  {
	return false;
//    int i;
//    if (this.b.get() <= 0)
//      i = 1;
//    while (true)
//    {
//      return i;
//      try
//      {
//        this.c.set(1);
//        CountDownLatch localCountDownLatch = this.a;
//        TimeUnit localTimeUnit = TimeUnit.SECONDS;
//        boolean bool = localCountDownLatch.await(72000L, localTimeUnit);
//        this.c.set(0);
//        i = 1;
//      }
//      catch (InterruptedException localInterruptedException)
//      {
//        App.b(localInterruptedException);
//        i = 0;
//      }
//    }
  }
}

/* Location:           E:\AndroidDecompiler\jd-gui-0.3.3.windows\newrclasses.dex.dex2jar.jar
 * Qualified Name:     com.kksoft.readcm.objects.c
 * JD-Core Version:    0.6.0
 */